package cn.gov.service.impl;

import cn.gov.dao.IStationDAO;
import cn.gov.service.IStationService;
import cn.gov.vo.Station;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.Map;

@Service
public class StationServiceImpl implements IStationService {
    @Autowired
    private IStationDAO stationDAO ;

    @Override
    public Map<String, Object> findCondition(Station station) {
        Map<String,Object> map = new HashMap<>() ;
        if(station == null){
            return map;
        }
        map.put("serviceStations",stationDAO.findByCondition(station)) ;

        return map ;
    }
}
